package com.example.java_gobang2.config;

import com.zhipu.oapi.ClientV4;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ZhiPuConfig {
//    @Value("${ZhiPu.key}")
//    private String key;
    @Bean
    public ClientV4 clientV4() {
        return new ClientV4.Builder("4ad77691556c4ea1879f9929bd534eb5.Hv0mp4qDSZ8Ge4jI").build();
    }
}
